package com.wh.codedemon.trace.controller;

import com.wh.codedemon.trace.utils.TraceIdUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @auther whoo7
 * @date 2023/12/31 23:24
 */
@RestController
@RequestMapping("trace")
@Slf4j
public class TestController {

    @GetMapping("/hello")
    public String hello() {
        log.info("进入hello方法-----------");
        return "hello world" + TraceIdUtil.getTraceId();
    }
}
